package com.fasteat.mall.quartz;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 设置定时器执行规则
 */
public abstract class TaskSupport implements InitializingBean {

	@Autowired
	private TaskContainer taskContainer;


	public abstract Rule setRule();

	public void loadRule() {
		taskContainer.load(setRule());
	}

}
